<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic"%>

<html:form action="/sistema/cliente/modificar" method="post" focus="nome">
	<table class="tbForm">
		<logic:messagesPresent message="false">
		<tr>
			<td colspan="2" class="erro">
				<bean:message key="formulario.informar.erros"/>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="erro">
				<html:messages id="mensagem" message="false" property="falha">
					<bean:write name="mensagem"/>
				</html:messages>
			</td>
		</tr>
		</logic:messagesPresent>
		<tr>
			<td width="35%" valign="top" align="right"><bean:message key="formulario.cliente.nome"/>:</td>
			<td width="" align="left">
				<html:text property="nome" size="43" maxlength="100"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('cliente/nome.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="nome">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>

		<tr>
			<td align="right" valign="top" ><bean:message key="formulario.cliente.endereco"/>:</td>
			<td align="left">
				<html:textarea property="endereco" rows="5" cols="40"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('cliente/endereco.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="endereco">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>	

		<tr>
			<td width="35%" valign="top" align="right"><bean:message key="formulario.cliente.cnpj"/>:</td>
			<td width="" align="left">
				<html:text property="cnpj" size="25" maxlength="18"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('cliente/cnpj.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="cnpj">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>

		<tr>
			<td width="35%" valign="top" align="right"><bean:message key="formulario.cliente.telefone"/>:</td>
			<td width="" align="left">
				<html:text property="numeroTelefone" size="18" maxlength="14"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('cliente/telefone.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="numeroTelefone">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>

		<tr>
			<td><html:hidden property="clienteId"/></td>
			<td align="left">
				<html:submit><bean:message key="sistema.botao.salvar"/></html:submit>
			</td>
		</tr>
	</table>
</html:form>